package com.abel.tactics;

import com.abel.factory.Factory1;
import com.abel.templat.TemplateMethodHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 皮球处理类
 *
 * @author heyangyang
 * @since 2024-05-15
 */
@Component
@Slf4j
public class Piqiu1Handler extends TemplateMethodHandler {
    @Override
    public void handler2() {
        log.info("我是皮球2");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Factory1.registerStrategy("bb", this);
    }
}
